Xyapi.prototype = {
  setGoodsList: function(value) {
    if (!value) {
      throw new Error('无效的数据设置')
    }
    this.impl.setGoodsList(value)
  },
  getGoodsList: function() {
    return this.impl.getGoodsList()
  },
  setSupplierList: function(value) {
    if (!value) {
      throw new Error('无效的数据设置')
    }
    this.impl.setSupplierList(value)
  },
  getSupplierList: function() {
    return this.impl.getSupplierList()
  },
  setPurchaseOrderList: function(value) {
    if (!value) {
      throw new Error('无效的数据设置')
    }
    this.impl.setPurchaseOrderList(value)
  },
  getPurchaseOrderList: function() {
    return this.impl.getPurchaseOrderList()
  },
  setPurchaseReceiveOrderList: function(value) {
    if (!value) {
      throw new Error('无效的数据设置')
    }
    this.impl.setPurchaseReceiveOrderList(value)
  },
  getPurchaseReceiveOrderList: function() {
    return this.impl.getPurchaseReceiveOrderList()
  }
}

export default function Xyapi(impl) {
  this.impl = impl
}
